Integrand size = 33, antiderivative size = 94 \[ \int \cos (c+d x) \sqrt {a+a \sec (c+d x)} \left (A+C \sec ^2(c+d x)\right ) \, dx=\frac {\sqrt {a} A \arctan \left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{d}+\frac {A \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{d}-\frac {a (A-2 C) \tan (c+d x)}{d \sqrt {a+a \sec (c+d x)}} \]
[Out]
Time = 0.24 (sec) , antiderivative size = 94, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.152, Rules used = {4172, 4000, 3859, 209, 3877} \[ \int \cos (c+d x) \sqrt {a+a \sec (c+d x)} \left (A+C \sec ^2(c+d x)\right ) \, dx=\frac {\sqrt {a} A \arctan \left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a \sec (c+d x)+a}}\right )}{d}-\frac {a (A-2 C) \tan (c+d x)}{d \sqrt {a \sec (c+d x)+a}}+\frac {A \sin (c+d x) \sqrt {a \sec (c+d x)+a}}{d} \]
[In]
[Out]
Rule 209
Rule 3859
Rule 3877
Rule 4000
Rule 4172
Rubi steps \begin{align*} \text {integral}& = \frac {A \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{d}+\frac {\int \sqrt {a+a \sec (c+d x)} \left (\frac {a A}{2}-\frac {1}{2} a (A-2 C) \sec (c+d x)\right ) \, dx}{a} \\ & = \frac {A \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{d}+\frac {1}{2} A \int \sqrt {a+a \sec (c+d x)} \, dx+\frac {1}{2} (-A+2 C) \int \sec (c+d x) \sqrt {a+a \sec (c+d x)} \, dx \\ & = \frac {A \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{d}-\frac {a (A-2 C) \tan (c+d x)}{d \sqrt {a+a \sec (c+d x)}}-\frac {(a A) \text {Subst}\left (\int \frac {1}{a+x^2} \, dx,x,-\frac {a \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{d} \\ & = \frac {\sqrt {a} A \arctan \left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{d}+\frac {A \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{d}-\frac {a (A-2 C) \tan (c+d x)}{d \sqrt {a+a \sec (c+d x)}} \\ \end{align*}
Time = 0.52 (sec) , antiderivative size = 84, normalized size of antiderivative = 0.89 \[ \int \cos (c+d x) \sqrt {a+a \sec (c+d x)} \left (A+C \sec ^2(c+d x)\right ) \, dx=\frac {a \left (A \text {arctanh}\left (\sqrt {1-\sec (c+d x)}\right )+(2 C+A \cos (c+d x)) \sqrt {1-\sec (c+d x)}\right ) \tan (c+d x)}{d \sqrt {1-\sec (c+d x)} \sqrt {a (1+\sec (c+d x))}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(176\) vs. \(2(84)=168\).
Time = 0.87 (sec) , antiderivative size = 177, normalized size of antiderivative = 1.88
method | result | size |
default | \(\frac {\left (A \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {arctanh}\left (\frac {\sin \left (d x +c \right )}{\left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}}\right ) \cos \left (d x +c \right )+A \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {arctanh}\left (\frac {\sin \left (d x +c \right )}{\left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}}\right )+A \cos \left (d x +c \right ) \sin \left (d x +c \right )+2 C \sin \left (d x +c \right )\right ) \sqrt {a \left (1+\sec \left (d x +c \right )\right )}}{d \left (\cos \left (d x +c \right )+1\right )}\) | \(177\) |
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 258, normalized size of antiderivative = 2.74 \[ \int \cos (c+d x) \sqrt {a+a \sec (c+d x)} \left (A+C \sec ^2(c+d x)\right ) \, dx=\left [\frac {{\left (A \cos \left (d x + c\right ) + A\right )} \sqrt {-a} \log \left (\frac {2 \, a \cos \left (d x + c\right )^{2} - 2 \, \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right ) \sin \left (d x + c\right ) + a \cos \left (d x + c\right ) - a}{\cos \left (d x + c\right ) + 1}\right ) + 2 \, {\left (A \cos \left (d x + c\right ) + 2 \, C\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{2 \, {\left (d \cos \left (d x + c\right ) + d\right )}}, -\frac {{\left (A \cos \left (d x + c\right ) + A\right )} \sqrt {a} \arctan \left (\frac {\sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{\sqrt {a} \sin \left (d x + c\right )}\right ) - {\left (A \cos \left (d x + c\right ) + 2 \, C\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{d \cos \left (d x + c\right ) + d}\right ] \]
[In]
[Out]
\[ \int \cos (c+d x) \sqrt {a+a \sec (c+d x)} \left (A+C \sec ^2(c+d x)\right ) \, dx=\int \sqrt {a \left (\sec {\left (c + d x \right )} + 1\right )} \left (A + C \sec ^{2}{\left (c + d x \right )}\right ) \cos {\left (c + d x \right )}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 792 vs. \(2 (84) = 168\).
Time = 0.37 (sec) , antiderivative size = 792, normalized size of antiderivative = 8.43 \[ \int \cos (c+d x) \sqrt {a+a \sec (c+d x)} \left (A+C \sec ^2(c+d x)\right ) \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \cos (c+d x) \sqrt {a+a \sec (c+d x)} \left (A+C \sec ^2(c+d x)\right ) \, dx=\int { {\left (C \sec \left (d x + c\right )^{2} + A\right )} \sqrt {a \sec \left (d x + c\right ) + a} \cos \left (d x + c\right ) \,d x } \]
[In]
[Out]
Timed out. \[ \int \cos (c+d x) \sqrt {a+a \sec (c+d x)} \left (A+C \sec ^2(c+d x)\right ) \, dx=\int \cos \left (c+d\,x\right )\,\left (A+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right )\,\sqrt {a+\frac {a}{\cos \left (c+d\,x\right )}} \,d x \]
[In]
[Out]